solving polynomial equations using synthetic division